package com.wanmait.baohan.util;

public class GetDay {


    public int getDays(int year,int month){
        int[] days =new int[12];
        days[0]=31;
        days[1]=28;
        days[2]=31;
        days[3]=30;
        days[4]=31;
        days[5]=30;
        days[6]=31;
        days[7]=31;
        days[8]=30;
        days[9]=31;
        days[10]=30;
        days[11]=31;

        if(year%400==0||(year%4==0&&year%100!=0)){
            days[1]=29;
        }
        return  days[month-1];
    }
}
